package com.zd.service.impl;

import com.zd.mapper.UnitsNatureMapper;
import com.zd.model.UnitsNature;
import com.zd.service.IUnitsNatureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UnitsNatureServiceImpl implements IUnitsNatureService {

    @Autowired
    private UnitsNatureMapper unitsNatureMapper;

    @Override
    public List<UnitsNature> selectUnitsNatureInfo() {
        return unitsNatureMapper.selectUnitsNatureInfo();
    }

    @Override
    public UnitsNature selectByPrimaryKey(int id) {
        return unitsNatureMapper.selectByPrimaryKey(new Long(id));
    }
}
